package chapter12Lock;


/**
 * Created by LinGer on 2019/6/19
 */
public class TestMain {

    public static void main(String[] args) {
        Depot depot = new Depot();
        Producer producer = new Producer(depot);
        Consumer consumer = new Consumer(depot);

        producer.produce(60);
        producer.produce(120);
        consumer.consumer(90);
        consumer.consumer(150);
        producer.produce(110);
    }
}
